#include "myclass.h"

MyClass::MyClass(QObject *parent)
    : QObject{parent}
{}

Q_INVOKABLE int MyClass::Member1(){
    return m_member1;
}
Q_INVOKABLE int MyClass::Member2(){
    return m_member2;
}
Q_INVOKABLE QString MyClass::Member3(){
    return m_member3;
}
Q_INVOKABLE void MyClass::setMember1(int val1){
    m_member1 = val1;
}
Q_INVOKABLE void MyClass::setMember2(int val2){
    m_member2 = val2;
}
Q_INVOKABLE void MyClass::setMember3(const QString&val3){
    m_member3 = val3;
}
Q_INVOKABLE int MyClass::func(QString flag){
    cout << "I'am func,I recv:" << flag.toStdString() << endl;
    return 8888;
}
